<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <title>Administration</title>		
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        #{get 'moreStyles' /}	
        <link rel="stylesheet" type="text/css" media="screen" 
                href="@{'/public/stylesheets/main.css'}" />
        <link rel="shortcut icon" type="image/png" 
                href="@{'/public/images/favicon.png'}" />
        <script src="@{'/public/javascripts/jquery-1.3.2.min.js'}"></script>
        <script src="@{'/public/javascripts/jquery.tools.min.js'}"></script>
    </head>
    <body id="admin">
        
        <div id="header">
            <div id="logo">
                covami. <span>administration</span>
            </div>
            <ul id="tools">
                <li>
                	<a href="@{Application.index()}">Accueil</a>&nbsp;&nbsp;&nbsp; 
                    <a href="@{Secure.logout()}">Déconnexion</a>
                </li>
            </ul>
        </div>
        
        <div id="main">
	        <ul id="adminMenu">
	        #{secure.check 'admin'}
	            <li class="${request.controller == 'Utilisateurs' ? 'selected' : ''}">
	                <a href="@{Utilisateurs.list()}">Utilisateurs</a>
	            <li class="${request.controller == 'Voitures' ? 'selected' : ''}">
	                <a href="@{Voitures.list()}">Voitures</a>
	        #{/secure.check}
	    	</ul>
            #{doLayout /} 
        </div>
        
        <p id="footer">
            Gaudéric Pledran - Philippe Chauvelin - Mélina Fontaine
        </p>
        
    </body>
</html>